package com.jie.common.http.constant.response;

/**
 * @author XieZhiJie
 * @date 2022/04/23 15:05
 */
public class HttpResponseStatusConstant {

    public static class HttpResponseStatus {

        public final String statusCode;

        public final String statusDescription;

        public HttpResponseStatus(String statusCode, String statusDescription) {
            this.statusCode = statusCode;
            this.statusDescription = statusDescription;
        }
    }

    /**
     * 成功
     */
    public static final HttpResponseStatus SUCCESS = new HttpResponseStatus("200", "OK");

    /**
     * 请求出现问题
     */
    public static final HttpResponseStatus BAD_REQUEST = new HttpResponseStatus("400", "BadRequest");

    /**
     * 请求禁止
     */
    public static final HttpResponseStatus FORBIDDEN = new HttpResponseStatus("403", "ForBidden");

    /**
     * 找不到处理该ur的方法
     */
    public static final HttpResponseStatus NOT_FOUND = new HttpResponseStatus("404", "NotFound");

    /**
     * 服务器笼统的错误
     */
    public static final HttpResponseStatus INTERNAL_SERVER_ERROR = new HttpResponseStatus("500", "InternalServerError");

}
